1: | from(X) | → cons(X,from(s(X))) | |
2: | sel(0,cons(X,XS)) | → X | |
3: | sel(s(N),cons(X,XS)) | → sel(N,XS) | |
4: | minus(X,0) | → 0 | |
5: | minus(s(X),s(Y)) | → minus(X,Y) | |
6: | quot(0,s(Y)) | → 0 | |
7: | quot(s(X),s(Y)) | → s(quot(minus(X,Y),s(Y))) | |
8: | zWquot(XS,nil) | → nil | |
9: | zWquot(nil,XS) | → nil | |
10: | zWquot(cons(X,XS),cons(Y,YS)) | → cons(quot(X,Y),zWquot(XS,YS)) | |
11: | FROM(X) | → FROM(s(X)) | |
12: | SEL(s(N),cons(X,XS)) | → SEL(N,XS) | |
13: | MINUS(s(X),s(Y)) | → MINUS(X,Y) | |
14: | QUOT(s(X),s(Y)) | → QUOT(minus(X,Y),s(Y)) | |
15: | QUOT(s(X),s(Y)) | → MINUS(X,Y) | |
16: | ZWQUOT(cons(X,XS),cons(Y,YS)) | → QUOT(X,Y) | |
17: | ZWQUOT(cons(X,XS),cons(Y,YS)) | → ZWQUOT(XS,YS) | |